Example for Genetic Algorithm